﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;

namespace TheCollectiveNetwork.CustomControls
{
    // This is a normal button with a GuidID property added to store a GUID.
    public class GuidButton : Button
    {
        
        public static readonly DependencyProperty GuidIDProperty =  DependencyProperty.Register("GuidIDstrProp", typeof(Guid), typeof(GuidButton), null);
        public static readonly DependencyProperty ModeProperty = DependencyProperty.Register("ModestrProp", typeof(String), typeof(GuidButton), null);


        public Guid GuidID
        {
            get
            {
                return (Guid)base.GetValue(GuidIDProperty); 
            }
            set
            {
                base.SetValue(GuidIDProperty, value); 
            }
        }

        public String Mode
        {
            get
            {
                return (String)base.GetValue(ModeProperty);
            }
            set
            {
                base.SetValue(ModeProperty, value);
            }
        }

    }


    public class GuidCheckBox : CheckBox
    {

        public static readonly DependencyProperty GuidIDProperty = DependencyProperty.Register("GuidIDstrProp", typeof(Guid), typeof(GuidCheckBox), null);       


        public Guid GuidID
        {
            get
            {
                return (Guid)base.GetValue(GuidIDProperty);
            }
            set
            {
                base.SetValue(GuidIDProperty, value);
            }
        }
                       
    }

    
}
